package com.small.base.es;

import com.small.base.es.entity.ElasticsearchEntity;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;

/**
 * ElasticsearchProperties
 *
 * @author miajio
 */
@Data
@ConfigurationProperties(
        prefix = "small.es"
)
public class ElasticsearchProperties implements Serializable {
    private static final long serialVersionUID = -196994757878611789L;

    /**
     * es hosts
     */
    private ElasticsearchEntity[] hosts;

    /**
     * es user name
     */
    private String userName;

    /**
     * es password
     */
    private String password;

    /**
     * es thread loop
     */
    private Integer loop;

    /**
     * es connect time out
     */
    private Integer connectTimeout;

    /**
     * es socket time out
     */
    private Integer socketTimeout;
}
